.TH std::pmr::unsynchronized_pool_resource 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::pmr::unsynchronized_pool_resource \- std::pmr::unsynchronized_pool_resource

.SH Synopsis
   Defined in header <memory_resource>
   class unsynchronized_pool_resource : public                            \fI(since C++17)\fP
   std::pmr::memory_resource;

   The class std::pmr::unsynchronized_pool_resource is a general-purpose memory
   resource class with the following properties:

     * It owns the allocated memory and frees it on destruction, even if deallocate has
       not been called for some of the allocated blocks.
     * It consists of a collection of pools that serves requests for different block
       sizes. Each pool manages a collection of chunks that are then divided into
       blocks of uniform size.
     * Calls to do_allocate are dispatched to the pool serving the smallest blocks
       accommodating the requested size.
     * Exhausting memory in the pool causes the next allocation request for that pool
       to allocate an additional chunk of memory from the upstream allocator to
       replenish the pool. The chunk size obtained increases geometrically.
     * Allocations requests that exceed the largest block size are served from the
       upstream allocator directly.
     * The largest block size and maximum chunk size may be tuned by passing a
       std::pmr::pool_options struct to its constructor.

   unsynchronized_pool_resource is not thread-safe, and cannot be accessed from
   multiple threads simultaneously; use synchronized_pool_resource if access from
   multiple threads is required.

.SH Member functions

   constructor       constructs an unsynchronized_pool_resource
                     \fI(public member function)\fP
   destructor        destroys an unsynchronized_pool_resource, releasing all allocated
   \fB[virtual]\fP         memory
                     \fI(virtual public member function)\fP
   operator=         copy assignment operator is deleted. unsynchronized_pool_resource
   [deleted]         is not copy assignable
                     \fI(public member function)\fP
.SH Public member functions
   release           release all allocated memory
                     \fI(public member function)\fP
   upstream_resource returns a pointer to the upstream memory resource
                     \fI(public member function)\fP
                     returns the options that control the pooling behavior of this
   options           resource
                     \fI(public member function)\fP
.SH Protected member functions
   do_allocate       allocate memory
   \fB[virtual]\fP         \fI(virtual protected member function)\fP
   do_deallocate     return memory to the pool
   \fB[virtual]\fP         \fI(virtual protected member function)\fP
   do_is_equal       compare for equality with another std::pmr::memory_resource
   \fB[virtual]\fP         \fI(virtual protected member function)\fP
